﻿using SignInServer.Server;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SignInServer
{
    public partial class Form1 : Form
    {
        SocketServer socketServer;
        public Form1()
        {
            InitializeComponent();
        }

        private void button_Start_Server_Click(object sender, EventArgs e)
        {
            socketServer=new SocketServer();
            socketServer.OpenServer();
            button_Start_Server.Enabled = false;
        }

        private void CheckServerStatus()
        {
            if (socketServer.serverStatus != 1)
            {
                button_Start_Server.Enabled = true;
            }
        }
    }
}
